package com.qidian.blog.service.impl;

import com.qidian.blog.factory.MapperFactory;
import com.qidian.blog.mapper.BlogConfigMapper;
import com.qidian.blog.pojo.BlogConfig;
import com.qidian.blog.service.BlogConfigService;
import com.qidian.blog.util.pojo.QDResult;

/**
 * @Author 郭浩
 * @Date 2022/10/10 15:34
 */
public class BlogConfigServiceImpl implements BlogConfigService {
    private BlogConfigMapper mapper = MapperFactory.getMapper(BlogConfigMapper.class);
    @Override
    public BlogConfig query() {
        return mapper.query();
    }

    @Override
    public QDResult update(BlogConfig config) {
        mapper.update(config);
        return QDResult.ok();
    }
}
